﻿<%@ Page Title="" Language="C#" Theme="Default_Themes" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DanhSachDoanVienDangKyRenLuyen.aspx.cs" Inherits="DanhMuc_DanhSachDoanVienDangKyRenLuyen" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="row-fluid">
        <div class="span12">
            <div class="box">
                <div class="box-title">
                    <h3><i class="icon-file"></i>Kết quả rèn luyện đoàn viên</h3>
                    <div class="box-tool">
                        <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                        <a data-action="close" href="#"><i class="icon-remove"></i></a>
                    </div>
                </div>
                <div class="box-content" style="color:#3a87ad;border:solid 1px;">
                    <asp:UpdatePanel ID="udt1" runat="server">
                        <ContentTemplate>
                            <div class="row-fluid">
                                <div class="span12">
                                    <div class="box-content"  style="text-align:left;">
                                        <label class="control-label" style="width:150px;padding-right:10px;">Năm rèn luyện</span></label>
                                        <div class="control-group info">
                                            <asp:TextBox ID="txtnamrenluen" runat="server" CssClass="span2" placeholder="Nhập năm" AutoPostBack="true" MaxLength="4" OnTextChanged="txtnamrenluen_TextChanged"></asp:TextBox>
                                            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" Display="Dynamic" ForeColor="Red" ErrorMessage="(*)" ControlToValidate="txtnamrenluen" ValidationGroup="vl1"></asp:RequiredFieldValidator>
                                            <ajaxToolkit:FilteredTextBoxExtender ID="txtnamrenluen_FilteredTextBoxExtender" runat="server" FilterType="Numbers" TargetControlID="txtnamrenluen"></ajaxToolkit:FilteredTextBoxExtender>
                                            Chọn đơn vị <asp:DropDownList ID="drldonvi" runat="server" Height="25px"></asp:DropDownList>
                                            <asp:RequiredFieldValidator runat="server" ID="rqdonvi" Display="Dynamic" ForeColor="Red" ErrorMessage="(*)" ControlToValidate="drldonvi" ValidationGroup="vl1" InitialValue="0"></asp:RequiredFieldValidator>
                                            <asp:LinkButton ID="btntruyvan" ValidationGroup="vl1" class="btn btn-primary"  runat="server" OnClick="btntruyvan_Click"><i class="icon-list"></i>&nbsp;&nbsp;Lấy danh sách đoàn viên</asp:LinkButton>
                                            <asp:LinkButton ID="btnsave" class="btn btn-primary"  runat="server" OnClick="btnsave_Click"><i class="icon-save"></i>&nbsp;&nbsp;Lưu kết quả</asp:LinkButton>
                                            <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
                                        </div>
                                        <div style="margin-top:15px;font-style:italic;color:#0094ff;font-weight:bold;"><asp:Label ID="lblmessage1" runat="server"></asp:Label></div>
                                        <asp:GridView ID="grid_renluyendoanvien" runat="server" AllowSorting="True" AutoGenerateColumns="False" Width="100%" CellPadding="4" ForeColor="#333333" GridLines="None" Style="margin-top: 0px" DataKeyNames="ID">
                                            <AlternatingRowStyle BackColor="White" />
                                            <Columns>
                                                <asp:TemplateField HeaderText="Mã đoàn viên">
                                                    <ItemTemplate>
                                                        <asp:Label runat="server" ID="lblMaDoanVien" Text='<%#Eval("MaDoanVien") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Tên đoàn viên">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblTenDoanVien" runat="server" Text='<%#Eval("TenDoanVien") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Left" VerticalAlign="Middle" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Ngày vào đoàn">
                                                    <ItemTemplate>
                                                        <%#Eval("NgayVaoDoan") %>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Phái">
                                                    <ItemTemplate>
                                                        <%#Eval("Phai") %>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Ngày sinh">
                                                    <ItemTemplate>
                                                        <%#Eval("NgaySinh") %>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="CMND">
                                                    <ItemTemplate>
                                                        <%#Eval("CMND") %>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Mức độ hoàn thành ">
                                                    <ItemTemplate>
                                                        <asp:DropDownList ID="drlmucdohoanthanh" CssClass="dropdownformat" runat="server" DataTextField="XepLoai" DataValueField="ID" SelectedValue=<%#Eval("MucDoHoanThanh") %> DataSourceID="source"></asp:DropDownList>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <EditRowStyle BackColor="#2461BF" />
                                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                            <RowStyle BackColor="#EFF3FB" />
                                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
    </div>
    <asp:ObjectDataSource ID="source" runat="server" SelectMethod="GetXepLoaiRenLuyenDoanVien" TypeName="CatalogAccess"></asp:ObjectDataSource>
</asp:Content>

